package gui_2.panel;

import javax.swing.*;
import java.awt.*;

public class ShowBgPanel extends JPanel {
    private String photoPath;

    public ShowBgPanel(String photoPath){
        this.photoPath = photoPath;
    }

    @Override
    public void paint(Graphics g) {
        super.paint(g);
        g.drawImage(new ImageIcon(this.photoPath).getImage(), 0, 0,
                600, 400, null);
    }
}
